package com.cloudspace.yunloan.player.interfaces;

import android.view.SurfaceHolder;

public interface IMediaPlayer {

    void setDataSource(String path);

    void start();

    void pause();

    void prepare();

    void prepareAsync();

    void stop();

    void release();

    void reset();

    void seekTo(int msec);

    int getCurrentPosition();

    int getDuration();

    int getPlayerBufferedProgress();

    void setDisplay(SurfaceHolder sh);

    boolean isPlaying();
}
